Upload Files
AutomatR.Dropbox.Activities.UploadFile
The "Upload File" activity in AutomatR is part of the Dropbox activities package, facilitating the upload of a file from a local drive to a user's Dropbox account. This activity streamlines the process of uploading files, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Destination Path | Specifies the path of the destination folder in Dropbox where the file will be uploaded. String variables containing the destination path. |
File Path | Specifies the full path of the file on the local drive that you want to upload to Dropbox. String variables containing the local file path. Example: "D:\uploadFile\dropbox.txt" |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Upload File" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
How to Use
- Drag and drop the "Upload File" activity onto the workflow.
- Configure the properties by specifying the local file path, destination folder path in Dropbox, and optionally set the delay and customize the display name.
- Execute the workflow to upload the specified file to the specified destination in Dropbox.
Important Notes:
- Ensure that the activity is placed within a "Dropbox Scope" activity to establish the necessary authentication scope.
- The "File Path" should include the full path of the file on the local drive, including the file name and extension.
- The "Destination Path" should specify the path of the destination folder in Dropbox where the file will be uploaded.
- If the destination folder path does not exist in Dropbox, the activity will raise an exception.
Example:
Consider an example where the "Upload File" activity is used to upload a file named "dropbox.txt" from the local drive to a folder named "Uploads" in Dropbox:
Upload File:
Display Name: "Upload to Dropbox"
File Path: "D:\uploadFile\dropbox.txt"
Destination Path: "/Uploads"
In this example, the activity uploads the "dropbox.txt" file from the local drive to the "/Uploads" folder in Dropbox.